<?php include "app/views/includes/header.phtml"; ?>

<h1 class="text-center">Catégorie</h1>
<div id="wrapper">
    <section id="left">

      <?php if(isset($bieres)) : foreach($bieres as $biere): ?>
      <article class="biere">
        <div class="thumbnail">
          <div class="caption">
            <h3><?php echo $biere->get('nom'); ?></h3>
            <div class="row">
              <div class="col-xs-8">
                <p><?php echo substr($biere->get('descriptif'), 0, 80); ?>...</p>
                
              </div>
              <?php if($biere->get('image') != "") : ?>
              <div class="col-xs-4">
                <img src="<?php echo $biere->get('image'); ?>" alt="<?php echo $biere->get('nom'); ?>" class="img-responsive">
              </div>
              <?php endif; ?>
            </div>
            <span class="clearfix"></span>
            <p><a href="?action=detail&idBiere=<?php echo $biere->get('no'); ?>" class="btn btn-primary">Détails</a><p>
          </div>
          
        </div>
      </article>
      <?php endforeach; endif;?>


    </section>

    <aside id="right">
        <?php include "app/views/includes/aside.phtml"; ?>
    </aside>

</div>

<?php include "app/views/includes/footer.phtml"; ?>